package com.taxer.service;

import com.taxer.db.entity.News;
import com.taxer.exception.TaxerExcepiton;

import java.util.List;

public interface NewsService {
    News getNewsById(Long id) throws TaxerExcepiton;
    List<News> getNewsAll() throws TaxerExcepiton;
    void insert(News news) throws TaxerExcepiton;
    boolean deleteById(Long id) throws TaxerExcepiton;
    boolean deleteBySomeId(List list) throws TaxerExcepiton;
}
